package com.linx.common.core.domain.model;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 正元响应对象
 */

@Data
public class ZYResponse implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 200 成功
     */
    private String code;

    /**
     *
     */
    private String msg;

    /**
     *
     */
    private Body body;

    @Data
    public static class Body implements Serializable {

        private String id;

        private String name;

        private String description;

        private String parentID;

        private Integer totalCount;

        private List<ResponseData> data;

        private List<ResponseData> staff;

    }

    @Data
    public static class ResponseData implements Serializable {

        private String areaID;
        private String buildingID;
        private String id;
        private String roomNo;
        private String name;
        private String enable;
        private String currentFloor;
        private String description;
        private String image;
        private String point;
        private String roomCount;
        private String updateTime;
        private String locationName; // 地点名称 (区域名称/楼栋/楼层)

        private Integer hardwareTypeID; // 硬件种类ID ( 1 : 网关 ； 2 ：门锁)

        private Integer commStatus; // 1 : 在线 2 : 离线

        private String staffID; // 工号

        private String uniqueID; // 员工id

        private String staffName; // 员工姓名

        private String lockKey; // 员工密码

        private String effectiveTime; // 生效时间

        private String expiryTime; // 失效时间

        private String passwordEffectiveTime; // 密码生效时间

        private String passwordExpiryTime; // 密码失效时间

    }

}
